#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(void);

int
main()
{
   long retval = sysconf(_SC_NPROCESSORS_CONF);
   printf("procs: %lu\n", retval);

   retval = sysconf(_SC_NPROCESSORS_ONLN);
   printf("procs online: %lu\n", retval);

   return 0;
}
